/**
 * 
 */
package com.kelaite.procurement.common;

/**
 * @author yuanchangwei
 *
 */
public class CommonResponseDto<T> {

	private String resCode;//相应码
	
	private String resMsg;//相应消息
	
	private T content;//具体相应数据
	
	public CommonResponseDto() {
		super();
	}

	public CommonResponseDto(String resCode, String resMsg) {
		super();
		this.resCode = resCode;
		this.resMsg = resMsg;
	}

	public CommonResponseDto(String resCode, String resMsg, T content) {
		super();
		this.resCode = resCode;
		this.resMsg = resMsg;
		this.content = content;
	}
	
	public CommonResponseDto(RetCodeEnum retCode) {
		super();
		this.resCode = retCode.getCode();
		this.resMsg = retCode.getMsg();
	}

	public String getResCode() {
		return resCode;
	}

	public void setResCode(String resCode) {
		this.resCode = resCode;
	}

	public String getResMsg() {
		return resMsg;
	}

	public void setResMsg(String resMsg) {
		this.resMsg = resMsg;
	}

	public T getContent() {
		return content;
	}

	public void setContent(T content) {
		this.content = content;
	}

	@Override
	public String toString() {
		return "CommonResponseDto [resCode=" + resCode + ", resMsg=" + resMsg
				+ ", content=" + content + "]";
	}
}
